<!DOCTYPE html>
<html>
<head>
<LINK href="designtwo.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RapidBook</title>
</head>
<body>
<div id="wrapper">
<div id="right"></div>
<div id="center">
<div id="heading">
<h1>Bücherverwaltung</h1>
</div>
<div id="table_border">
<table>
	<col id="col1">
	<col id="col2">
	<col id="col3">
	<col id="col4">
	<thead>
		<tr>
			<td>
			<h2>Titel <a id="add">+</a></h2>
			</td>
			<td>
			<h2>Fach</h2>
			</td>
			<td>
			<h2>Jahrgang</h2>
			</td>
			<td>
			<h2>Auflage</h2>
			</td>
		</tr>
	</thead>
			<?php
				$count = 1;
				while($row=mysql_fetch_assoc($result)):?>
				<tr class="line<?php if ($count%2==1){echo "2";} else {echo "1";}?>">
					<td><a href="buchdetails.php?buch_id=<?php echo $row['buch_id']?>"><?php echo $row['titel']?></a></td>
					<td>
					<p><?php echo $row['fach']?></p>
					</td>
										<td>
					<p><?php echo $row['klassenstufe']?></p>
					</td>
										<td>
					<p><?php echo $row['release']?></p>
					</td>
				</tr>
				<?php $count++; endwhile; ?>

	
</table>
</div>
</div>

<div id="left"><a href="index.html"><img id="logo"
	src="img/rapidbooklogo.jpg" alt="Logo"></a> <br>
<a href="schueler.html" class="menu">Schüler</a> <a href="buecher.html"
	class="menu">Bücher</a></div>

</div>

</body>
</html>